package test.handler;

import org.junit.Test;

import utl.mofen.jsonStreamHandler.HandlerFactory;
import utl.mofen.jsonStreamHandler.IJSonStreamHandler;
import utl.mofen.utils.IntfUtil;

import com.netty.handler.IJSonStreamNettyHandler;

public class tester {
	@Test
	public void tester()
	{		
		try {
			IJSonStreamHandler handler= HandlerFactory.createHandler("login");
		    if (IntfUtil.isInterface(handler.getClass(), IJSonStreamNettyHandler.class))
		    {		    	
		    	((IJSonStreamNettyHandler)handler).setChannelHandlerContext(null);		    	
		    }
			System.out.println(handler.getClass());
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println(System.getProperty("java.library.path"));
	}
}
